# Contributor: Anon <danilagdn.2004@gmail.com>
# Maintainer: Anon <danilagdn.2004@gmail.com>
pkgname=sing-geoip
pkgver=20231212
pkgrel=0
pkgdesc="sing-geoip database"
_repo="SagerNet/$pkgname"
url="https://github.com/$_repo"
arch="noarch"
license="GPL-3.0-or-later"
source="$pkgver.geoip-cn.db::$url/releases/download/$pkgver/geoip-cn.db
				$pkgver.geoip.db::$url/releases/download/$pkgver/geoip.db
				$pkgver.LICENSE::https://raw.githubusercontent.com/$_repo/$pkgver/LICENSE"
options="!check"


package() {
	install -Dm644 "$srcdir/$pkgver.geoip-cn.db" "$pkgdir/usr/share/$pkgname/geoip-cn.db"
	install -Dm644 "$srcdir/$pkgver.geoip.db"    "$pkgdir/usr/share/$pkgname/geoip.db"
	install -Dm644 "$srcdir/$pkgver.LICENSE"     "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

sha512sums="
aad59939cfc58f9a5d2970beab7fc31dec83bb9b9c2de692f502d5f0fb5ed2085413e0d4b2bba9d694a6004d31b319054831cf439e358959ecd8d20e8df920c4  20231212.geoip-cn.db
713101c779f6678f7ac6731303a917489bb642d83b7d1138bb9467743f2619089fd31e2426c022af31d2e6d9d4963bf9cc38c69a269bb24684ffc467bd0dba91  20231212.geoip.db
5cab2697882973e38835376b3e5f45f5720da2a5d408c442ab8c03b97b2cb69387fe5dd7f00e8d3e7dbc9e34797c120c0444b9abb60aba1728e6661970a12418  20231212.LICENSE
"
